sum — Summation of elements
sum
computes the sum of a matrix. If the argument is a row or column vector, then the sum of all the elements in the vector is returned. Otherwise, the return object is a row matrix which contains the sum of each column of the input.
Subsections
Example